package ase.eleitweg.server;

import ase.eleitweg.common.*;
import java.rmi.*;

public abstract class AbstractServerController implements Pingable, ServerHandle {
	
	
	protected ClientHandle client; 

	public void ping() throws RemoteException {
		//do nothing. Just keep the RMI-connection from timeout.
	}
	
	public AbstractServerController() {
	}
	
	public abstract void registerClient(ClientHandle ch) throws RemoteException;
	
	public void logout() throws RemoteException {
		
		/*Iterator<ClientHandle> clientIterator = clients.iterator();
		while(clientIterator.hasNext()) {
			if(clientIterator.next().equals(client)) {
				clientIterator.remove();
				return;
			}
		}*/
	}

}
